package method

import (
	"server/biz"
	"server/service"
)

func FinTask(md *service.Meta) (interface{}, error) {
	id := md.Get("id").Int()
	if id == 0 {
		return nil, service.NewError(400, "ID_EMPTY")
	}
	err := md.Get("error").String()
	out := biz.FinTask(id, err)
	return out, nil
}
